﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-13 12:49:24
// 负责人：lvsc
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
namespace OF.Component.BLL
{

    /// <summary>
    ///模板城市关联 扩展
    /// </summary>
    public partial class ExpressFeeTplCityOperate
    {
        /// <summary>
    	/// 根据断言条件获取单个模板城市关联
    	/// </summary>
        public static ExpressFeeTplCityInfo QuerySingle(Expression<Func<ExpressFeeTplCityInfo, bool>> predicate)
        {
            return dal.QuerySingle(predicate);
        }

        /// <summary>
        /// 根据断言条件获获取模板城市关联列表
        /// </summary>
        public static IList<ExpressFeeTplCityInfo> QueryList(Expression<Func<ExpressFeeTplCityInfo, bool>> predicate)
        {
            return dal.QueryList(predicate);
        }

        /// <summary>
        /// 批量插入
        /// </summary>
        public static void BatchInsert(IList<ExpressFeeTplCityInfo> list)
        {
            dal.BatchInsert(list);
        }
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ids">id集合，逗号间隔</param>
        public static void BatchDelete(string inStr)
        {
            dal.BatchDelete(inStr);
        }
        /// <summary>
        /// 根据模版Id逻辑删除模版下的所有城市
        /// </summary>
        /// <param name="inStr">id集合，逗号间隔</param>
        public static void LogicDeleteByTplId(int expressTplId)
        {
            dal.LogicDeleteByTplId(expressTplId);
        }

    }
}